package com.gduf.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gduf.common.utils.PageUtils;
import com.gduf.gulimall.product.entity.AttrEntity;
import com.gduf.gulimall.product.entity.vo.AttrReponseVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author masterXiao
 * @email sunlightcs@gmail.com
 * @date 2023-04-24 17:05:53
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId);

    AttrReponseVo getAttrInfo(Long attrId);

    List<AttrEntity> getRelationAttr(long attrgroupId);

    /**
     * 指定的所有的集合跳出所有的检索属性
     * @param attrIds
     * @return
     */
    List<Long> selectSearchAttrs(List<Long> attrIds);
}

